package com.siwei.mes.mapper.laboratory;

import com.siwei.mes.common.dataSource.DataSource;
import com.siwei.mes.common.dataSource.DataSourceNames;
import com.siwei.mes.entity.laboratory.concrete.DataConcreteKs;
import com.siwei.mes.entity.laboratory.concrete.DataConcreteKsk;
import com.siwei.mes.entity.laboratory.concrete.DataConcreteKy;
import com.siwei.mes.entity.laboratory.concrete.DataConcreteKz;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


public interface ConcreteLaboratoryMapper {

    //根据样品编码查询混凝土抗压
    @DataSource(DataSourceNames.LABORATORY)
    public Map<String, Object> findDATA_JGCL_HNT_HNTKYBySampleNo(@Param("sampleNo") String sampleNo);

    //新增混凝土抗压
    @DataSource(DataSourceNames.LABORATORY)
    public void addDATA_JGCL_HNT_HNTKY(DataConcreteKy dataWjjPhz);

    //修改混凝土抗压
    @DataSource(DataSourceNames.LABORATORY)
    public void updateDATA_JGCL_HNT_HNTKY(DataConcreteKy dataWjjPhz);


    //根据样品编码查询混凝土抗渗1
    @DataSource(DataSourceNames.LABORATORY)
    public Map<String, Object> findDATA_JGCL_HNTKS_KS_MBySampleNo(@Param("sampleNo") String sampleNo);

    //新增混凝土抗渗1
    @DataSource(DataSourceNames.LABORATORY)
    public void addDATA_JGCL_HNTKS_KS_M(DataConcreteKs dataConcreteKs);

    //修改混凝土抗渗1
    @DataSource(DataSourceNames.LABORATORY)
    public void updateDATA_JGCL_HNTKS_KS_M(DataConcreteKs dataConcreteKs);


    //根据样品编码查询混凝土抗渗2
    @DataSource(DataSourceNames.LABORATORY)
    public List<DataConcreteKsk> findDATA_JGCL_HNTKS_KS_KBySampleNo(@Param("sampleNo") String sampleNo);

    //新增混凝土抗渗2
    @DataSource(DataSourceNames.LABORATORY)
    public void addDATA_JGCL_HNTKS_KS_K(DataConcreteKsk dataConcreteKs);

    //删除抗渗2
    @DataSource(DataSourceNames.LABORATORY)
    public void delDATA_JGCL_HNTKS_KS_K(@Param("sampleNo") String sampleNo);

    //修改混凝土抗渗2
    @DataSource(DataSourceNames.LABORATORY)
    public void updateDATA_JGCL_HNTKS_KS_K(DataConcreteKs dataConcreteKs);

    //根据样品编号查询抗折强度
    @DataSource(DataSourceNames.LABORATORY)
    public DataConcreteKz findDATA_JGCL_HNT_KZQDBySampleNo(@Param("sampleNo") String sampleNo);

    //新增混凝土抗折强度
    @DataSource(DataSourceNames.LABORATORY)
    public void addDATA_JGCL_HNT_KZQD(DataConcreteKz dataConcreteKz);

    //修改混凝土抗折强度
    @DataSource(DataSourceNames.LABORATORY)
    public void updateDATA_JGCL_HNT_KZQD(DataConcreteKz dataConcreteKz);

}
